@import '../common/base.scss';
$color-red:red;
$color-gray:rgb(177, 171, 171);

body {
    background-color: #ededed !important;
}

// 小头
.index {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;

    .left {
        display: flex;

        span {
            cursor: pointer;
            font-size: 12px;

            &:nth-child(1) {
                &::before {
                    font-family: "iconfont";
                    content: "\e62b";
                    color: $color-red;
                    margin-right: 3px;
                }
            }

            &:hover {
                color: $color-red;
            }

            margin: 0 5px;
            color: $color-gray;
        }
    }

    .right {
        height: 100%;
        display: flex;

        ul {
            margin: 0;
            height: 100%;
            display: flex;
            align-items: center;

            li {
                font-size: 12px;
                height: 100%;
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 0 7px;
                color: $color-gray;

                &:hover {
                    color: $color-red;
                }

                cursor: pointer;
            }
        }

    }
}

// 头部
.header {
    background-color: white;
    height: 110px;
    display: flex;

    .left {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;

        img {
            width: 80%;
            height: 80%;
        }
    }

    .middle {
        flex: 1;

        .top {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 65%;
            display: flex;

            .search {

                display: flex;
                width: 460px;
                background-color: rgb(95, 91, 85);
                border: 2px solid $color-red;

                input {
                    font-size: 14px;
                    border: 0;
                    outline: none;
                    width: 82%;
                    background-color: rgb(233, 236, 236);
                }

                i {
                    cursor: pointer;
                    background-color: rgb(233, 236, 236);
                    width: 30px;
                    display: flex;
                    justify-content: center;
                    align-items: center;

                    &:hover {
                        color: $color-red;
                    }
                }

                span {
                    cursor: pointer;
                    flex: 1;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    background-color: $color-red;

                    &:hover {
                        background-color: rgb(201, 3, 3);
                    }

                    &::before {
                        color: white;
                        font-weight: 600;
                        font-family: 'iconfont';
                        content: '\e63c';
                    }
                }

            }

            &>span {
                cursor: pointer;
                color: $color-red;
                margin-left: 20px;
                font-size: 14px;
                padding: 3px 6px;
                border: 1px solid $color-red;

                &::before {
                    font-family: 'iconfont';
                    content: '\e651';
                    margin-right: 5px;
                }
            }

        }

        .buttom {
            height: 35%;

            ul {
                height: 100%;
                display: flex;
                justify-content: space-evenly;
                align-items: center;

                li {
                    font-size: 12px;
                }
            }
        }
    }

    .right {
        margin-top: 20px;
        margin-right: 80px;
        width: 80px;
    }
}

// 导航
.nav {
    position: relative;
    margin-top: 20px;
    padding: 0 !important;
    display: flex;
    height: 400px;
    justify-content: space-between;
    .one {
        overflow: hidden;
        a{
            text-decoration: none;
            color: black;
            &:hover{
                color: $color-red;
            }
        }
        li{
            &:hover{
                background-color: #ededed;
            }
            padding-left: 15px;
        }
       
    }
    @include scroll('.one');
    .two {
        display: none;
        z-index: 100;
        position: absolute;
        top: 0;
        left:17%;
        width: 400px;
        height: 100%;
        flex-wrap: wrap;
        align-content: flex-start;
        background-color: rgb(245, 241, 228);
        span{
            margin: 5px 8px !important;
            a{  
                &:hover{
                    color: $color-red;
                }
                padding: 3px 5px;
               height: 30px;
                text-decoration: none;
    
            }
        }
       
    }
    .left {
        width: 17%;
        height: 100%;
        background-color: white;

        ul {
            height: 100%;

            li {
                font-size: 12px;
                height: 5.5%;
                display: flex;
                align-items: center;
                justify-content: flex-start;


            }
        }

        i {
            margin: 0 2px;
        }
    }

    .swiper1 {
        width: 40%;
        height: 100%;
        margin: 0 !important;

        img {
            height: 100%;
        }

        .swiper-pagination {
            width: 20%;
            left: 20px;

            span {
                background-color: white;
            }
        }

        .swiper-button-prev {
            left: 0 !important;
            width: 35px;
            border-radius: 0 20px 20px 0;
            background-color: rgba(171, 172, 172, .3);

            &::after {
                color: white;
                font-size: 16px !important;
            }
        }

        .swiper-button-next {
            right: 0 !important;
            width: 35px;
            border-radius: 20px 0 0 20px;
            background-color: rgba(171, 172, 172, .3);

            &::after {
                color: white;
                font-size: 16px !important;
            }
        }
    }

    .swiper2 {
        &:hover .swiper-button-prev {
            display: block;
            display: flex;
        }

        &:hover .swiper-button-next {
            display: block;
            display: flex;
        }

        height: 100%;
        width: 18%;
        margin: 0;

        .swiper-button-prev {
            display: none;
            left: 0 !important;
            width: 35px;
            border-radius: 0 20px 20px 0;
            background-color: rgba(171, 172, 172, .3);

            &::after {
                color: white;
                font-size: 16px !important;
            }
        }

        .swiper-button-next {
            display: none;
            right: 0 !important;
            width: 35px;
            border-radius: 20px 0 0 20px;
            background-color: rgba(171, 172, 172, .3);

            &::after {
                color: white;
                font-size: 16px !important;
            }
        }

        .swiper-slide {
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            &>div {
                height: 30%;

                &>img {
                    height: 100%;
                    width: 100%;
                }
            }
        }

    }

    .right {
        background-color: white;
        padding: 0 5px;
        width: 20%;
        height: 100%;

        .user {

            div,
            p {
                margin: 0 !important;
                padding: 0 !important;
            }

            height: 35%;

            .tou {
                height: 25%;
                display: flex;
                justify-content: center;

                img {
                    height: 100%;
                    border-radius: 30px;
                }
            }

            .plus {
                border-radius: 10px;
                margin: 5px 0 !important;
                background-color: rgba(247, 200, 142, 0.8);

                p {
                    font-size: 10px;
                    padding-left: 7px !important;
                }
            }

            .qiye {
                border-radius: 10px;
                margin: 5px 0 !important;
                background-color: rgba(182, 246, 255, 0.8);

                p {
                    font-size: 10px;
                    padding-left: 7px !important;
                }
            }

            .hi {
                text-align: center;
            }
        }

        .choose {
            height: 60%;

            ul {
                height: 100%;
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                align-content: space-between;

                li {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    width: 30%;
                    height: 22%;

                    img {
                        height: 70%;
                        width: 70%;
                    }

                    p {
                        height: 30%;
                        font-size: 12px;
                    }
                }
            }
        }

        .zixun {
            margin-top: 3px;
            height: 4%;
            display: flex;

            span {
                height: 90%;
                padding: 0 5px !important;
                background-color: rgb(248, 233, 216);
                font-size: 11px;
                line-height: 15px;
                color: #f15e5e;
                margin-right: 5px
            }

            ;

            p {
                font-size: 11px;
            }
        }
    }
}

// 秒杀
.miaoSha {
    padding: 0 !important;
    height: 200px;
    display: flex;
    margin-top: 20px;

    .time {
        width: 15%;
        background-image: url('../images/miaoSha.png');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        height: 100%;

        .wenzi {
            height: 60%;
            width: 100%;
            padding-top: 24px;
            text-align: center;
            font-size: 25px;
            font-weight: 900;
            color: white;  
        }
        .chang {
            height: 10%;
            width: 100%;
            display: flex;
            justify-content: center;
            span{
                color: white;
            }
            .span1 {
                &::after{
                    content: ':';
                    margin-left:3px;
                    margin-right: 4px;
                }
                margin-right: 2px;
            }
        }
        .jieShu {
            width: 100%;
            height: 30%;
            display: flex;
            
            justify-content: space-around;
            span {
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
                margin-top: 5%;
                width: 20%;
                height: 55%;
                background-color: rgb(58, 57, 57);
            }
            .span3 ,.span4{
                position: relative;
                &::after{
                    position: absolute;
                    right: -50%;
                    content: ':';
                    font-size: 16px;
                    font-weight: 700;
                    color: white;
                    margin-left:3px;
                    margin-right: 4px;
                }
                
            }

        }
    }

    .lunBoTu {
        width: 70%;
        height: 100%;
        background-color: aquamarine;
    }

    .tu {
        width: 15%;
        height: 100%;
        background-color: antiquewhite;
        img {
            width: 100%;
            height: 100%;
        }
    }
    .mySwiper{
        img{
            width: 33.33%;
            height: 100%;
        }
    }
}
.more{
    margin-top: 20px;
    .jd-container{
        padding: 0 !important;
    }
    .list{
    
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        .list-item{
            width: 230px;
            height: 322px;
            align-items: center;
            margin-bottom: 10px;
            img{
                width: 150px;
                height: 150px;
                margin-top: 30px;
            }
            .card-body{
                width: 100%;
                p {
                    // 两行出现省略号
                    @include slhs(100%,2)
                }
                a{
                    font-size: 12px;
                    color: red;
                    b{
                        font-size: 18px;
                        font-weight: 700;
                    }
                }
            } 
        }
    }
}
.footer{
    height: 150px;
    background-color: #333;
    text-align: center;
    line-height: 150px;
    font-size: 14px;
    color: #fff;
}